package action_行为型.strategy_pattern_策略模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/09/19:07
 * @Description:
 */
public class Context {

	Strategy strategy;

	public Context(Strategy strategy) {
		this.strategy = strategy;
	}

	public int operation(int number1, int number2) {
		return strategy.doOperation(number1, number2);
	}
}
